package com.springcloud.tread.service;

import com.springcloud.tread.config.IndexDataClientHystrix;
import com.springcloud.tread.pojo.IndexData;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient(value = "SPRINGCLOUD-PROVIDER-INDEX-DATA",fallbackFactory = IndexDataClientHystrix.class)
public interface IndexDataClientService {
    @GetMapping("/provider/getIndexData/{id}")
    public List<IndexData> getIndexData(@PathVariable("id") String id);
}
